package com.twu.biblioteca.views;

import com.twu.biblioteca.config.Message;
import com.twu.biblioteca.models.entities.User;
import com.twu.biblioteca.utils.EnterUtil;

public class UserView {

    public static String getEnterdUserName() {
        MessageView.showNotice(Message.ENTER_YOUR_NAME, false);
        return EnterUtil.getEnterdString();
    }

    public static String getEnterdUserPassword() {
        MessageView.showNotice(Message.ENTER_YOUR_PASSWORD, false);
        return EnterUtil.getEnterdString();
    }

    public static void show(User user) {
        String userIofo = "";
        userIofo += "------------------------------------\n";
        userIofo += "         Name | " + user.getName() + "\n";
        userIofo += "------------------------------------\n";
        userIofo += "        Email | " + user.getEmail() + "\n";
        userIofo += "------------------------------------\n";
        userIofo += " Phone number | " + user.getPhoneNumber() + "\n";
        userIofo += "------------------------------------\n";
        System.out.print(userIofo);
    }
}
